package tom.change.m22j;

import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class test {

	/*public static void main(String[] args) throws Exception{
		Map<String, Object> map=new HashMap<String,Object>();
		map.put("name", "张新华");
		map.put("birth", new Date());
		map.put("age", 22);
		map.put("sex", true);
		MJ.init(new User(),map);
		User user = (User) MJ.MapToJava();
		System.out.println(user.getName());
	}*/
	public static void main(String[] args) throws IllegalArgumentException, IllegalAccessException, InstantiationException{
		Map<String, Object> map = new HashMap<String,Object>();
		User user=new User();
		user.setAge(22);
		user.setSex(true);
		user.setBirth(new Date());
		user.setName("zxh");
		MJ.init(user, map);
		System.out.println(MJ.JavaToMap());
	}
}
